/*
 * Filename CheckOrderStatus.java 2022年10月11日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.core.api.constant.enums;

import lombok.Getter;

/**
 * 检测订单状态
 *
 * @author wyc
 * @since 2022/10/11 09:51
 **/
@Getter
public enum CheckOrderStatus {

    // 0:未支付;2:已冲正;3:已转退款;5:支付关闭;8:支付撤消;10:支付失败;14退款中;15退款成功
    // 16退款失败;20支付成功;22:支付完结;25:支付前置待支付;26:支付前置支付成功

    WAIT_PAY(0, "待支付"),
    CLOSE(5, "支付关闭"),
    PAY_FAIL(10, "支付失败"),
    REFUNDING(14, "退款中"),
    REFUND_SUCCESS(15, "退款成功"),
    REFUND_FAIL(16, "退款失败"),
    PAY_SUCCESS(20, "支付成功"),
    TO_PAY_AND_CHECK(25, "未支付未检测"),
    PAY_TO_CHECK(26, "已支付待检测"),
    PAY_IN_CHECK(27, "已支付检测中");
    private final Integer code;
    private final String desc;


    CheckOrderStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}